package com.qf.erp_system_admin.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * --- 一点都不难 ---
 *
 * @author DZW
 * @date 2024/7/22
 * @desc 订单表的实体类
 *
 */
@NoArgsConstructor
@AllArgsConstructor
@HeadRowHeight(20) // 指定列头行高
@ColumnWidth(20) // 指定列宽
public class Order {
    @ExcelIgnore
    private int orderId; // 订单id
    @ExcelProperty(value = "订单编号")
    private String orderNum; // 订单编号
    @ExcelProperty(value = "商品总金额")
    private double orderMoney; // 商品总金额
    @ExcelIgnore
    private String remark; // 备注
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderTime; // 订单创建时间
    @ExcelIgnore
    private int orderPay; // 支付方式
    @ExcelProperty(value = "支付状态")
    private int orderPaySta; // 支付状态
    @ExcelIgnore
    private int orderShipSta; // 发货状态
    @ExcelIgnore
    private int orderConfSta; // 确认状态
    @ExcelIgnore
    private int orderAfterSta; // 收获状态
    @ExcelProperty(value = "创建人")
    private String orderPeople; // 创建人
    @ExcelIgnore
    private int cliId; // 客户id,和客户表的关联字段
    @ExcelIgnore
    private String arr1;
    @ExcelIgnore
    private String arr2;
    @ExcelIgnore
    private int arr3;
    @ExcelIgnore
    private int arr4;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public double getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public int getOrderPay() {
        return orderPay;
    }

    public void setOrderPay(int orderPay) {
        this.orderPay = orderPay;
    }

    public int getOrderPaySta() {
        return orderPaySta;
    }

    public void setOrderPaySta(int orderPaySta) {
        this.orderPaySta = orderPaySta;
    }

    public int getOrderShipSta() {
        return orderShipSta;
    }

    public void setOrderShipSta(int orderShipSta) {
        this.orderShipSta = orderShipSta;
    }

    public int getOrderConfSta() {
        return orderConfSta;
    }

    public void setOrderConfSta(int orderConfSta) {
        this.orderConfSta = orderConfSta;
    }

    public int getOrderAfterSta() {
        return orderAfterSta;
    }

    public void setOrderAfterSta(int orderAfterSta) {
        this.orderAfterSta = orderAfterSta;
    }

    public String getOrderPeople() {
        return orderPeople;
    }

    public void setOrderPeople(String orderPeople) {
        this.orderPeople = orderPeople;
    }

    public int getCliId() {
        return cliId;
    }

    public void setCliId(int cliId) {
        this.cliId = cliId;
    }

    public String getArr1() {
        return arr1;
    }

    public void setArr1(String arr1) {
        this.arr1 = arr1;
    }

    public String getArr2() {
        return arr2;
    }

    public void setArr2(String arr2) {
        this.arr2 = arr2;
    }

    public int getArr3() {
        return arr3;
    }

    public void setArr3(int arr3) {
        this.arr3 = arr3;
    }

    public int getArr4() {
        return arr4;
    }

    public void setArr4(int arr4) {
        this.arr4 = arr4;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderNum='" + orderNum + '\'' +
                ", orderMoney=" + orderMoney +
                ", remark='" + remark + '\'' +
                ", orderTime=" + orderTime +
                ", orderPay=" + orderPay +
                ", orderPaySta=" + orderPaySta +
                ", orderShipSta=" + orderShipSta +
                ", orderConfSta=" + orderConfSta +
                ", orderAfterSta=" + orderAfterSta +
                ", orderPeople='" + orderPeople + '\'' +
                ", cliId=" + cliId +
                ", arr1='" + arr1 + '\'' +
                ", arr2='" + arr2 + '\'' +
                ", arr3=" + arr3 +
                ", arr4=" + arr4 +
                '}';
    }
}
